/**
 * 
 */
package com.longjoe.ljframework.net.combase;

import java.io.File;
import java.io.Serializable;
import java.util.List;

/**
 * @author Heycz
 * 
 */
public abstract class LJResponse implements Serializable {

  // 错误代码
  private String ErrCode;
  // 错误信息
  private String ErrMsg;

  private List<File> data;

  public String getErrCode() {
    return ErrCode;
  }

  public void setErrCode(String errCode) {
    ErrCode = errCode;
  }

  public String getErrMsg() {
    return ErrMsg;
  }

  public void setErrMsg(String errMsg) {
    ErrMsg = errMsg;
  }

  public List<File> getFiles() {
    return data;
  }

  public void setFiles(List<File> data) {
    this.data = data;
  }

  @SuppressWarnings("unchecked")
  public static <T extends LJResponse> T parse(Object obj) {
    return (T) obj;
  }
}

